.class public Lcom/esfile/screen/recorder/media/util/l;
.super Ljava/lang/Object;
.source "MediaBuffer.java"


# instance fields
.field private a:Lcom/esfile/screen/recorder/media/util/m;

.field public b:Ljava/nio/ByteBuffer;

.field public c:J

.field public d:I

.field public e:I

.field public f:Landroid/media/MediaCodec$BufferInfo;


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/media/util/m;IILandroid/media/MediaCodec$BufferInfo;Ljava/nio/ByteBuffer;J)V
    .locals 0

    .line 17
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 18
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/l;->a:Lcom/esfile/screen/recorder/media/util/m;

    .line 19
    iput p2, p0, Lcom/esfile/screen/recorder/media/util/l;->d:I

    .line 20
    iput p3, p0, Lcom/esfile/screen/recorder/media/util/l;->e:I

    .line 21
    iput-object p4, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    .line 22
    iput-object p5, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 23
    iput-wide p6, p0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    return-void
.end method

.method public constructor <init>(Lcom/esfile/screen/recorder/media/util/m;ILjava/nio/ByteBuffer;J)V
    .locals 0

    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 13
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/l;->a:Lcom/esfile/screen/recorder/media/util/m;

    .line 14
    iput p2, p0, Lcom/esfile/screen/recorder/media/util/l;->d:I

    .line 15
    iput-object p3, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 16
    iput-wide p4, p0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    return-void
.end method

.method public constructor <init>(Lcom/esfile/screen/recorder/media/util/m;Ljava/nio/ByteBuffer;J)V
    .locals 0

    .line 4
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/l;->a:Lcom/esfile/screen/recorder/media/util/m;

    .line 6
    iput-object p2, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 7
    iput-wide p3, p0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    return-void
.end method

.method public constructor <init>(Lcom/esfile/screen/recorder/media/util/m;Ljava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)V
    .locals 0

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 9
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/l;->a:Lcom/esfile/screen/recorder/media/util/m;

    .line 10
    iput-object p2, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 11
    iput-object p3, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    return-void
.end method

.method public constructor <init>(Ljava/nio/ByteBuffer;J)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 3
    iput-wide p2, p0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    return-void
.end method

.method public static c()Lcom/esfile/screen/recorder/media/util/l;
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/media/util/l;

    const/4 v1, 0x0

    const-wide/16 v2, 0x0

    invoke-direct {v0, v1, v2, v3}, Lcom/esfile/screen/recorder/media/util/l;-><init>(Ljava/nio/ByteBuffer;J)V

    .line 2
    new-instance v1, Landroid/media/MediaCodec$BufferInfo;

    invoke-direct {v1}, Landroid/media/MediaCodec$BufferInfo;-><init>()V

    iput-object v1, v0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    const/4 v2, 0x4

    .line 3
    iput v2, v1, Landroid/media/MediaCodec$BufferInfo;->flags:I

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/util/l;->a:Lcom/esfile/screen/recorder/media/util/m;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0, p0, p1}, Lcom/esfile/screen/recorder/media/util/m;->a(Lcom/esfile/screen/recorder/media/util/l;Z)V

    :cond_0
    return-void
.end method

.method public b()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v0

    :goto_0
    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "MediaBuffer[trackIndex:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/esfile/screen/recorder/media/util/l;->e:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ", bufferIndex:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/esfile/screen/recorder/media/util/l;->d:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ", timeStampUs:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ", bufferInfo:[offset:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v1, v1, Landroid/media/MediaCodec$BufferInfo;->offset:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ", size:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v1, v1, Landroid/media/MediaCodec$BufferInfo;->size:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ", pts:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v1, v1, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ", flags:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v1, v1, Landroid/media/MediaCodec$BufferInfo;->flags:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "]]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
